package com.woohua.demo.optional;

import java.util.Optional;

/***
 * @title OptionalObject
 * @description
 * @author woo hua
 * @version 1.0.0
 * @create 2023/4/17 15:26
 **/
public class OptionalObject {

    public static void main(String[] args) {
        Optional.ofNullable("历史").ifPresent(s -> System.out.println("张三: " + s));

        // generate html request
    }

}
